-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add label and annotation selector code. #3279
Add label and annotation selector code. #3279
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: monopole The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am curious is it the best solution to copy these files?
@@ -163,13 +164,21 @@ func (wn *WNode) MarshalJSON() ([]byte, error) { | |||
} | |||
|
|||
// MatchesAnnotationSelector implements ifc.Kunstructured. | |||
func (wn *WNode) MatchesAnnotationSelector(string) (bool, error) { | |||
panic("TODO(#WNode) MatchesAnnotationSelector; implement or drop from API") | |||
func (wn *WNode) MatchesAnnotationSelector(selector string) (bool, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not pretty confident about copying these files so we should have some tests for these functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack, will move down into kyaml as discussed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WNode implementation is now just a delegation to RNode, consistent with the plans to ditch WNode as soon as #2506 closes.
Tests added for the RNode code.
Added more of an explanation to k8sgen/doc.go
e6b02e2
to
5af4a81
Compare
5af4a81
to
c3f9e1b
Compare
c3f9e1b
to
47e6b07
Compare
d7969b8
to
2014bbb
Compare
2014bbb
to
12de0b2
Compare
/test |
@monopole: The
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test all |
12de0b2
to
440da7c
Compare
440da7c
to
015c17e
Compare
015c17e
to
2988a8b
Compare
@Shell32-Natsu ready for review, thanks |
d5e9f0d
to
60ea8de
Compare
Prow job is still using Go 1.13 and env GOMODCACHE is added in Go 1.15. |
Thanks. Sent out kubernetes/test-infra#20056, but don't want to wait for it as there are almost 100 pr's in the queue. Disabled re-generation for now. The generate code is committed to source control regardless, so regenerating each time is just a test of the build environment on prow. Nice, but not vital. |
/lgtm |
See comments in
api/internal/k8sgen/doc.go
Fermez #2893